<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中介列表</title>
</head>
<body>

<a href="<%=request.getContextPath()%>/inter/input">add</a>

<table class="dtable">
	<thead>
		<td>类型</td>
		<td>姓名</td>
		<td>电话</td>
	</thead>
	<tbody>
		<c:forEach items="${datas}" var="d">
			<tr>
				<td>${d.type}</td>
				<td title="${d.id }">${d.name}</td>
				<td>${d.tel}</td>
				<td>
					<a href="<%=request.getContextPath()%>/inter/input?id=${d.id }">修改</a>
					<a href="<%=request.getContextPath()%>/inter/delete?id=${d.id }" onclick="return confirm('确认删除?')">删除</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>


</body>
</html>